package com.hopes.bizz.poll.analy.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;
import java.util.Objects;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/6/2 9:52
 * @Description:
 */
@Data
@Schema(description = "趋势分析VO")
public class GISAnalyzeDischargeVO implements Serializable {
    private Date time;
    private Map<String, BigDecimal> dataMap;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        GISAnalyzeDischargeVO that = (GISAnalyzeDischargeVO) o;
        return time.equals(that.time);
    }

    @Override
    public int hashCode() {
        return Objects.hash(time);
    }
}
